package com.mall.db.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * <p>
 * 
 * </p>
 *
 * @author hsp
 * @since 2021-09-16
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("t_send_message")
public class SendMessage extends BaseEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 类型 sms短信 email 邮箱
     */
    private String type;

    /**
     * 接收人
     */

    private String acceptUser;

    @TableField(exist = false)
    private List<String> acceptUsers;

    /**
     * 接收类型（all所有，some，某些）
     */
    private String acceptType;

    /**
     * member员工 vip会员
     */
    private String accept;

    /**
     * 标题
     */
    private String title;

    /**
     * 信息
     */
    private String content;

    private Date sendTime;

    /**
     * 发送状态0：成功，1：失败
     */
    private Integer state;




}
